﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="bookmarkedit.aspx.cs"
    Inherits="Eugenhome.Atrium.Bookmark.Web.BookmarkEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta name="robots" content="noindex">
    <meta http-equiv="expires" content="0">
    <title>Bookmarks-Verwaltung</title>
    <link rel="stylesheet" type="text/css" href="../style.css">
    <meta name="robots" content="noindex">
    <meta http-equiv="expires" content="0">
</head>
<body>
    <form id="form1" runat="server">
    <table cellpadding="0" cellspacing="0" class="editTable">
        <tr>
            <td colspan="2" class="tdUnderline">
                <div class="title">
                    Bookmarks verwalten</div>
                <a href="../default.aspx" target="_top">
                    <img src="../gui/back.png" title="Zurück zur Startseite" /></a>&#160;&#160;::&#160;&#160;
                <a href="bookmarkcry.aspx" target="_top">Verschlüsselte Seiten verwalten</a>&#160;&#160;
                ::&#160;&#160;
                <a href="bookmarkiconedit.aspx" target="_top">Icons verwalten</a>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:DropDownList ID="cbLabels" Width="150" runat="server" OnSelectedIndexChanged="cbLabels_SelectedIndexChanged"
                    AutoPostBack="True">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td colspan="2">
            </td>
        </tr>
        <tr>
            <td>
                <asp:ListBox ID="lstBookmarks" runat="server" AutoPostBack="True" Height="250" Width="250"
                    OnSelectedIndexChanged="lstBookmarks_SelectedIndexChanged"></asp:ListBox>
            </td>
            <td valign="top">
                <table cellpadding="3" cellspacing="0" style="margin-left: 20px;">
                    <tr>
                        <td colspan="2" style="text-align: right;" class="tdUnderline">
                            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="gui/save_edit.png" ToolTip="Änderungen speichern"
                                OnClick="btnSave_Click" CssClass="editButtons" />
                            <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="gui/new.png" ToolTip="Neu"
                                OnClick="btnAdd_Click" CssClass="editButtons" />
                            <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="gui/delete.png" ToolTip="Löschen"
                                OnClick="btnDelete_Click" CssClass="editButtons" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Name
                        </td>
                        <td>
                            <asp:TextBox ID="txtDisplayName" runat="server" Text="<%#SelectedBookmark.DisplayName%>"
                                Width="180" AutoComplete="off"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Labels
                        </td>
                        <td>
                            <asp:TextBox ID="txtLabels" runat="server" Text="<%#SelectedBookmark.LabelsString%>"
                                Width="400" AutoComplete="off"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="white-space: nowrap">
                            Icon (http)
                        </td>
                        <td>
                            <asp:DropDownList ID="cbIcon" Width="250" runat="server" AutoPostBack="True" OnSelectedIndexChanged="cbIcon_SelectedIndexChanged">
                            </asp:DropDownList><br />
                            <asp:TextBox ID="txtIcon" runat="server" Text="<%#SelectedBookmark.Icon%>" Width="370"
                                AutoComplete="off"></asp:TextBox>&#160;<img src="<%#SelectedBookmark.Icon%>" width="16" />
                        </td>
                    </tr>
                    <tr><td colspan="2" style="height:5px;"></td></tr>
                    <tr>
                        <td>
                            Link
                        </td>
                        <td>
                            <asp:DropDownList ID="cbLink" Width="250" runat="server" AutoPostBack="True" OnSelectedIndexChanged="cbLink_SelectedIndexChanged">
                            </asp:DropDownList>
                            <asp:CheckBox ID="cbNewWindow" runat="server" Checked="<%#SelectedBookmark.OpenInNewWindow%>"
                                Text="Im neuen Fenster" />
                            <br />
                            <asp:TextBox ID="txtHref" runat="server" Text="<%#SelectedBookmark.Href%>" Width="400"
                                AutoComplete="off"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="height: 40px;">
                            <asp:ImageButton ID="btnMoveUp" runat="server" ImageUrl="gui/save_edit.png" ToolTip="Nach unten verschieben"
                                OnClick="btnMoveUp_Click" CssClass="editButtons" Visible="False" />
                            <asp:ImageButton ID="btnMoveDown" runat="server" ImageUrl="gui/save_edit.png" ToolTip="Nach unten verschieben"
                                OnClick="btnMoveDown_Click" CssClass="editButtons" Visible="False" />
                            </td>
        </tr>
    </table>
    </form>
</body>
</html>
